<?php
if (!defined('BASEPATH'))
     exit('No direct script access allowed');
    class factory {
        function create($class_name,$your,$parameters) {
            // security checks on $class_name here

            //require_once APPPATH.'/libraries/'.$class_name.'.php';
            require_once("../codeigniter_libs/libraries/".$class_name.".php");

            return new $class_name($your,$parameters);
        }
    }
